/*
 * @LastEditTime: 2023-03-23 19:37:05
 * @Method: 
 * @Description: 
 */
package Preview.tengxunyinyue;

import java.util.*;


public class Solution2 {
    public int getCnt (String str) {
        int n = str.length();
        int[] dp = new int[n];
        dp[0] = 0;
        for (int i = 1;i < n;i++) {
            int abs = Math.abs(str.charAt(i) - str.charAt(i - 1));
            if (abs == 0 || abs == 32) {
                dp[i] = dp[i - 1] + 1;
            } else {
                dp[i] = dp[i - 1];
            }
        }
        return dp[n - 1];
    }
    
    public static void main(String[] args) {
        System.out.println('a' - 'A');
    }
}